import api from './api';

export const addressList = params => {
    return api.get("/useraddresses/"+params.page,{checkToken:true})
}
export const useraddress = params => {
    return api.post("/useraddresses",{...params,checkToken:true})
}
export const updateaddress = params => {
    return api.post("/useraddresses/"+params.id,{...params,checkToken:true})
}
export const deladdress = params => {
    return api.get("/useraddresses/"+params.id,{checkToken:true})
}